extends Control

var prop:Prop: set = set_buffer_prop

func set_buffer_prop(value: Prop):
	$Label.set_text(str(value.value))
	$Sprite2D.texture = value.icon
	prop = value

func update_value(value):
	if value!= -1 :
		$Label.visible = true
		prop.value = value
		$Label.set_text(str(value))
	else:
		$Label.visible = false

